PEShow...Page

Use the PEShow...Page function calls to display the specified page in the preview window. Use these functions any time you want to display specific pages of a report in the preview window or give the user the ability to move forward, backward, or to a specified page in a report in the preview window. Use PEGetNPages, to determine the number of pages available in the specified report when using PEShowNthPage, for example.

C Syntax
BOOL CRPE_API PEShowFirstPage (
        short printJob ); BOOL CRPE_API PEShowLastPage (
        short printJob ); BOOL CRPE_API PEShowNextPage (
        short printJob ); BOOL CRPE_API PEShowNthPage (
        short printJob,
        short pageN ); BOOL CRPE_API PEShowPreviousPage (
        short printJob );
Parameter(s)

printJob

Specifies the print job for which you want to indicate the page to be displayed.

Returns
Remarks

Using PEGetJobStatus, you can determine how many pages are contained in the specified report. This information will determine the range available for parameter pageN when using PEShowNthPage.

VB Syntax

VB Sample Code for Previewing a Report

Declare Function PEShowFirstPage Lib "crpe32.dll" (
    ByVal printJob As Integer ) As Integer Declare Function PEShowLastPage Lib "crpe32.dll" (
    ByVal printJob As Integer ) As Integer Declare Function PEShowNextPage Lib "crpe32.dll" (
    ByVal printJob As Integer ) As Integer Declare Function PEShowNthPage Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal pageN As Integer ) As Integer Declare Function PEShowPreviousPage Lib "crpe32.dll" (
    ByVal printJob As Integer ) As Integer
Delphi Syntax
function PEShowFirstPage (
    printJob: Word
    ): Bool stdcall; function PEShowLastPage (
    printJob: Word
    ): Bool stdcall; function PEShowNextPage (
    printJob: Word
    ): Bool stdcall; function PEShowPreviousPage (
    printJob: Word
    ): Bool stdcall; function PEShowNthPage (
    printJob: Word;
    pageN: Smallint
    ): Bool stdcall;
dBASE for Windows Syntax
EXTERN CLOGICAL PEShowNextPage (CWORD) CRPE.DLL
EXTERN CLOGICAL PEShowFirstPage (CWORD) CRPE.DLL
EXTERN CLOGICAL PEShowPreviousPage (CWORD) CRPE.DLL
EXTERN CLOGICAL PEShowLastPage (CWORD) CRPE.DLL


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com